package mk.jug.academy.testing.factory;

import java.util.UUID;

import mk.jug.academy.model.Lecturer;
import mk.jug.academy.model.status.LecturerStatus;


/**
 * Factory for creating instances for testing purposes.
 * 
 * @author Ice.Penov
 */
public class LecturerTestFactory {
	
	/** No instantiation. Static usage only. */
	private LecturerTestFactory() {;}
	
	/** Creates a random {@link Lecturer} instance, for testing purposes */	
	public static Lecturer createLecturer() {
		Lecturer lecturer = new Lecturer();
		lecturer.setFirstName("firstName" + UUID.randomUUID());
		lecturer.setLastName("lastName" + UUID.randomUUID());
		lecturer.setBio("bio" + UUID.randomUUID());
		lecturer.setEmail(UUID.randomUUID() + "@example.com");
		lecturer.setPassword(UUID.randomUUID().toString());
		lecturer.setStatus(LecturerStatus.SIGNED_UP);
		return lecturer;
	}
	
	public static Lecturer createWithMissingFirstName() {
		Lecturer lecturer = createLecturer();
		lecturer.setFirstName(null);
		return lecturer;
	}
	
}
